﻿define([ "dojo/_base/declare",
		"dojo/text!./templates/Template.html",
		"../BaseWidget", "dojo/dom","dojo/on",
		"dojo/query","dojo/_base/lang",
		"dijit/layout/ContentPane",
		"esri/layers/GraphicsLayer",
		"esri/layers/FeatureLayer",
		"esri/graphic",
		"dojo/topic",
		"esri/tasks/QueryTask",
		"esri/tasks/query",
		"dojo/_base/array",
		"esri/symbols/SimpleLineSymbol",
		"esri/symbols/SimpleFillSymbol",
		"esri/symbols/SimpleMarkerSymbol",
		"esri/symbols/PictureMarkerSymbol",
		"esri/Color",
		"gistech/lib/echarts.common.min",
		"gistech/widgets/FrontHeatDiagram/LandTypeRenderer",
		"esri/InfoTemplate"
	],
	function(declare,template,BaseWidget,Dom,on,query,lang,ContentPane,GraphicsLayer,FeatureLayer,Graphic,Topic,QueryTask,ArcQuery,array,SimpleLineSymbol,SimpleFillSymbol,SimpleMarkerSymbol,PictureMarkerSymbol,Color,echars2,LandTypeRenderer,InfoTemplate){
		return declare([BaseWidget],{
			templateString:template,
			constructor : function(){
				//将右侧弹窗的中内容全部清空
				Global.widgets.right.removeAllTab();
				//定义的全局变量
				this.city="";//选择的城市
				this.county="";//选择的区域
				this.condition="";//根据选中的区域构造的条件
				this.currentLandType="";//当前点击土地类型
				//已掌握的土地信息
				this.alreadyMasteredLand={
					"纳入三旧的旧厂":{
						url:mapinfoTemplate.JCFFL3.layerurl,
						id:"threeOldFactory_govRegion",
//						queryFild:"GYMJ",
//						tableName:"SDDCGISDATA.JCF",
//			            tableName:"SDE.JCF_1",
						queryFild:mapinfoTemplate.JCFFL3.areaField,
						tableName:mapinfoTemplate.JCFFL3.tableName,
						renderColor:"[252,167,58,0.8]",
						condition:"",
						filterLayer:null,
						templateInfo:mapinfoTemplate.JCFFL3.template,
						table:{
							"tabelData":null,
							"columnsData":null,
							"sortName":"CODE",
							"sortOrder":"asc",
							"exportTableName":"旧厂房"
						}
					},
					"纳入三旧的旧城":{
						url:mapinfoTemplate.JCHFL3.layerurl,
						id:"threeOldCity_govRegion",
//						queryFild:"GYMJ",
//						tableName:"SDDCGISDATA.JCH",
//						tableName:"SDE.JCH_1",
						queryFild:mapinfoTemplate.JCHFL3.areaField,
						tableName:mapinfoTemplate.JCHFL3.tableName,
						renderColor:"[134,98,159,0.8]",
						condition:"",
						filterLayer:null,
						templateInfo:mapinfoTemplate.JCHFL3.template,
						table:{
							"tabelData":null,
							"columnsData":null,
							"sortName":"CODE",
							"sortOrder":"asc",
							"exportTableName":"旧城镇"
						}
					},
					"纳入三旧的旧村":{
						url:mapinfoTemplate.JCUFL3.layerurl,
						id:"threeOldVillage_govRegion",
//						queryFild:"JTMJ",
//						tableName:"SDDCGISDATA.JCU",
//						tableName:"SDE.JCU_1",
						queryFild:mapinfoTemplate.JCUFL3.areaField,
						tableName:mapinfoTemplate.JCUFL3.tableName,
						renderColor:"[240,72,75,0.8]",
						condition:"",
						filterLayer:null,
						templateInfo:mapinfoTemplate.JCUFL3.template,
						table:{
							"tabelData":null,
							"columnsData":null,
							"sortName":"CODE",
							"sortOrder":"asc",
							"exportTableName":"旧村庄"
						}
					},
					"纳入三旧的集体旧厂":{
						url:mapinfoTemplate.JCFFL3.layerurl,
						id:"threeOldCollFactory_govRegion",
//						queryFild:"JTMJ",
//			            tableName:"SDDCGISDATA.JCF",
//						tableName:"SDE.JCF_1",
						queryFild:mapinfoTemplate.JCFFL3.jt_areaField,
						tableName:mapinfoTemplate.JCFFL3.tableName,
						renderColor:"[244,139,73,0.8]",
						condition:"",
						filterLayer:null,
						templateInfo:mapinfoTemplate.JCFFL3.template,
						table:{
							"tabelData":null,
							"columnsData":null,
							"sortName":"CODE",
							"sortOrder":"asc",
							"exportTableName":"集体旧厂"
						}
					},
					"国有储备用地":{
						url:mapinfoTemplate.JHGD.layerurl,
						id:"stateownedReserve_govRegion",
//						queryFild:"YDMJ",
//			            tableName:"SDDCGISDATA.JHGD",
//						tableName:"SDE.JHYD_1",
						queryFild:mapinfoTemplate.JHGD.areaField,
			            tableName:mapinfoTemplate.JHGD.tableName,
						renderColor:"[82,186,158,0.8]",
						condition:"",
						filterLayer:null,
						templateInfo:mapinfoTemplate.JHGD.template,
						table:{
							"tabelData":null,
							"columnsData":null,
							"sortName":"CODE",
							"sortOrder":"asc",
							"exportTableName":"国有储备用地"
						},
					},
					"村自留地":{
						url:mapinfoTemplate.LYD.layerurl,
						id:"villagePlots_govRegion",
//						queryFild:"MJ",
//			            tableName:"SDDCGISDATA.LYD",
						queryFild:mapinfoTemplate.LYD.areaField ,
			            tableName: mapinfoTemplate.LYD.tableName,
//						tableName:"SDE.LYD_1",
						renderColor:"[52,142,166,0.8]",
						condition:"",
						filterLayer:null,
						templateInfo:mapinfoTemplate.LYD.template,
						table:{
							"tabelData":null,
							"columnsData":null,
							"sortName":"CODE",
							"sortOrder":"asc",
							"exportTableName":"留用地"
						}
					}
				}
				//拓展管控
				this.extendManagerAndControl={
					url:mapinfoTemplate.LandFeatureLayer.layerurl,
//					tableName:"SDDCGISDATA.WYTZ",
		            tableName: mapinfoTemplate.LandFeatureLayer.tableName,
//					tableName:"SDE.WYTZ_1",
					templateInfo:mapinfoTemplate.LandFeatureLayer.template,
					extendStyle:["招拍挂","旧厂改造","旧村改造","旧城改造","股权收购","村自留地项目","经济发展用地","其他"],
					extendStyleEn:["auction","oldFactoryChange","oldCountyChange","oldCityChange","equityPurchase","VillagePlots","ecoDevLand","other"],
					colors:["rgba(194,53,49,0.8)","rgba(47,69,85,0.8)","rgba(99,159,170,0.8)",
						"rgba(208,133,96,0.8)","rgba(198,134,222,0.8)","rgba(115,159,130,0.8)","rgba(202,134,35,0.8)","rgba(39,127,245,0.8)"],
					table:{
						"tabelData":null,
						"columnsData":null,
						"sortName":"",
						"sortOrder":""
					}
				},
				//土地信息
				this.singleLandInfoGraphicLayer=new GraphicsLayer({id:"landInfoGraphicLayer"});
				this.singleBlockInfoClickedGraphic=null;//当前点击的Graphic
				//存储所有graphic图层
				ioc.map.graphiclayers.push(this.singleLandInfoGraphicLayer);
  		 		//拓展管控
  		 		this.singleWYTZGraphicLayer=new GraphicsLayer({id:"wYTZGraphicLayer"});
  		 		this.singleWYTZClickedGraphic=null;//当前点击的Graphic
  		 	     //存储所有graphic图层
				ioc.map.graphiclayers.push(this.singleWYTZGraphicLayer);
            },
            postCreate:function(){
                this._init();
                this._addEvents();
                this.inherited(arguments);//存在继承的话这个就必须得要
            },
            startup:function(){
            	this.inherited(arguments);
            },
            destroy:function(){
            	this.inherited(arguments);
            },
            _init:function(){
            	debugger;
            	this._toggleExpandRight();//动态触发右面板展开或关闭
            	this._addDomToRight();//添加html到右侧面板中
            	this._initForm();
            	
            	this._initDatePicker();//日期组件的初始化
            	this._selectChange();//为人员完成度的下拉框绑定change事件
            },
            _addEvents:function(){
            	//区域搜索
            	on(this.okBtn,"click",lang.hitch(this,this._regionStatic));
            	
            	//土地信息
            	on(query('#landInfoStatic .numPercent',this.domNode),"click",lang.hitch(this,this._numPercent));
            	on(query('#landInfoStatic .areaPercent',this.domNode),"click",lang.hitch(this,this._areaPercent));
                Topic.subscribe("singleGovRegionBlockInfoPosition",dojo.hitch(this,this._singleGovRegionBlockById));
            	
            	//跟进项目
            	on(query('#followUpProjectStatic .numPercent',this.domNode),"click",lang.hitch(this,this._numPercentForFollowUpProj));
            	on(query('#followUpProjectStatic .areaPercent',this.domNode),"click",lang.hitch(this,this._areaPercentForFollowUpProj));
            	Topic.subscribe("singleGovRegionWYTZPosition",dojo.hitch(this,this._singleWYTZById));
            	 
            	//人员完成度
            	on(this.memCompletePercentStaticUpdate,"click",lang.hitch(this,this._memCompletePercentStaticUpdate));
            	
            },
            _toggleExpandRight:function(){
            	if(!Global.widgets.right.hasExpand){
    				Global.widgets.right.expandLeft();
    				$('.dijitContentPane',Global.widgets.right.domNode).empty();
    			}
            },
            _addDomToRight:function(){
            	var panel = new ContentPane();
				$(panel.domNode).wrapInner(this.domNode);
				Global.widgets.right.addTab(panel);
            },
            _initForm:function(){
            	 /*城市+区县的二级联动*/
            	//用户权限数据
            	debugger
            	this.userPermission={
        			"data":ioc.map.userRoleData,
        			"city":{}//
            	},
            	this.s=["s_city","s_county","s_town"];//三个select的name
                this.opt0 = ["市","区/县","镇/街道"];//初始值
                
                this._reConstructDsy();//重新构造市区数据  根据权限
                this._init_area();//初始化函数
                
                //表格元素验证
                this._formValidate();
            },
            /****************城市联动*************************************************/
            _reConstructDsy:function(){
            	debugger
    			this.userPermission.city={};
    			if(this.userPermission.data.length>0){
    				if(ioc.map.userInfoData.isManager){//管理员
    					this.userPermission.city=dsy.Items["0"];
    				}else{//非管理员
    					 array.forEach(this.userPermission.data,lang.hitch(this,function(item){
    						for(var key in dsy.Items){
    							 if(key != "0"){
    								 var position = array.indexOf(dsy.Items[key], item);
    								 if(position != -1){
    									 var city=dsy.Items["0"][key.split("_")[1]];
    									 
    									 if(this.userPermission.city[city] == undefined){
    										 this.userPermission.city[city]={"county":[]};
    									 }
    									 this.userPermission.city[city]["county"].push(item);
    									 break;
    								 }
    							 }
    						 }
    					}));
    					 debugger
    					 dsy.Items={};
    					 var count=0;
    					 for(var key in this.userPermission.city){
    						 if(dsy.Items["0"] == undefined){
    							 dsy.Items["0"]=[];
    						 }
    						 dsy.Items["0"].push(key);
    						 dsy.Items["0_"+count]=this.userPermission.city[key]["county"];
    						 count++;
    					 }
    					 debugger
    				}
    			}
    		},
    		_init_area:function(){
    			for(var i=0;i<this.s.length-1;i++){
    			    (function(i){
	    				$("#"+this.s[i],this.domNode).change(function(){
	    					this._change(i+1);
	    				}.bind(this));
    				}.bind(this))(i);
              	}
              	this._change(0);
    		},
    		_change:function(v){
    			debugger
    			var str="0";
    			for(i=0;i<v;i++){
    				str+=("_"+($("#"+this.s[i],this.domNode)[0].selectedIndex-1));
    			};
    			var ss=$("#"+this.s[v],this.domNode)[0];
    			with(ss){
    				length = 0;
    				options[0]=new Option(this.opt0[v],"");
    				if(v && $("#"+this.s[v-1],this.domNode)[0].selectedIndex>0 || !v){
    					if(dsy.Exists(str)){
    						ar = dsy.Items[str];
    						for(i=0;i<ar.length;i++){
    							options[length]=new Option(ar[i],ar[i]);
    						}//end for
    						if(v){ options[0].selected = true; }
    					}
    				}//end if v
    				if(++v<this.s.length){
    					this._change(v);
    				}
    			}//End with
    		},
    		
    		/**********表单元素的验证***************************************************/
            /***
             * 验证表单
             */
            _formValidate:function(){
            	$("#regionSelFormId",this.domNode).validate({
    			 	errorElement: 'label',
    		        errorClass: 'has-error',
    		        focusInvalid: true,
    		        rules:{
    		        	's_city': {required: true}
    		        },
    			    messages:{
    			    	's_city': {required: "必填"}
    			    },
    		        errorPlacement: function (error, element){
    		        	 element.parent().addClass(this.errorClass);
    		             element.removeClass(this.errorClass);
    		             error.insertAfter(element).css({"left":$(element).width()+39,"top":10,"color":"#a94442","width":50,"position": "absolute"});
    	            }
    			});
            	this._selectChangeValidate();
            	this._inputChangeValidate();
            },
            //select改变后重新验证
    		_selectChangeValidate:function(){
				 $('select', $("#regionSelFormId")).change(function (){
			    	if($("#regionSelFormId").validate().element($(this))){
			    		$(this).parent().removeClass('has-error');
			    	}
				 });
    		},
    		//input改变后重新验证
    		_inputChangeValidate:function(){
    			$('input', $("#regionSelFormId")).keyup(function (){
    				if($("#regionSelFormId").validate().element($(this))){
    		    		$(this).parent().removeClass('has-error');
    		    	}
    		    });
    		},
    		/**
    		 * 区域统计
    		 */
    		_regionStatic:function(){
    			if(!$("#regionSelFormId",this.domNode).valid()){
            		return false;
            	}else{
            		var graphicsLayer=Global.widgets.mapWidget.map.getLayer("regionGraphicsLayer");
            		if(!graphicsLayer){
            			this.regionGraphicsLayer=new GraphicsLayer({id:"regionGraphicsLayer"});//创建区域graphicLayer图层
                    	this.regionLineSym=new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,new Color([0,255,255,1]),3);
          		 		Global.widgets.mapWidget.map.addLayer(this.regionGraphicsLayer);
          		 		on(this.regionGraphicsLayer,"click",lang.hitch(this,function(e){
        					Topic.publish("graphicClickEvent",e);
        				}));
          		 		//存储所有graphic图层
        				ioc.map.graphiclayers.push(this.regionGraphicsLayer);
            		}
            	   //展开区域统计结果
        		   $('#regionSel').collapse('hide');
                   $('#regionStaticResult').collapse('show');
                   //获取区域限定的范围
                   this.condition=this._getReginCon();
                   
                   //查询服务获取区域
                   this._queryRegin();
                   
                   //查询服务获取统计的数据
                   this._landInfoStatic();
                   this._landInfoNavShown();
                   
                   //跟进项目的统计
                   this._followUpProjectStatic();
               	   this._followProgramNavShown();
                   
                   //人员完成度的统计
                   this._memCompletePercentStatic();
            	}
    		},
    		_getReginCon:function(){
    			debugger
    			var condition="";
    			this.city=$("#s_city",this.domNode).val();
    			this.county=$("#s_county",this.domNode).val();
    			this.town=$("#s_town",this.domNode).val();
    			if(this.county != ""){
    				if(this.town != ""){
    				   condition+="CSMC ='"+this.city+"' AND FQMC='"+this.county+"' AND ZJMC='"+this.town+"'";
    				}else{
    					condition+="CSMC ='"+this.city+"' AND FQMC='"+this.county+"'";
    				}
    			}else{
    				condition+="CSMC ='"+this.city+"'";
    			}
    			return condition;
    		},
    		_queryRegin:function(){
    			debugger
    			var queryTask=null;
                var query=new ArcQuery();
  				    query.returnGeometry=true;
  				    query.outFields=["*"];
  				    query.where=this.condition;
                switch(this.county){
               	   	case "":
                  		queryTask=new QueryTask(mapinfoTemplate.SJJX.layerurl);//市界
        				queryTask.execute(query,lang.hitch(this,function(cityFeature){
        					this._addRegionToMap(cityFeature.features[0].geometry);
        				}));
                  		break;
	        		default:
        			    queryTask=new QueryTask(mapinfoTemplate.HZQJ.layerurl);//区界
	       				queryTask.execute(query,lang.hitch(this,function(countyFeture){
	       					this._addRegionToMap(countyFeture.features[0].geometry);
	       				}));
               		    break;
                }
    		},
    		_addRegionToMap:function(geometry){
    			this.regionGraphicsLayer.clear();
				var extent=geometry.getExtent();
				var graphic = new Graphic(geometry,this.regionLineSym);
				this.regionGraphicsLayer.add(graphic);
				Global.widgets.mapWidget.map.setExtent(extent, true);
    		},
    		/*****土地信息**********************************************************************/
    		_landInfoStatic:function(){
    			this.landInfoStatic={
	  		 			totalNum:0,totalArea:0,legendData:[],pieColor:[],
	  		 			seriesData:{num:[],area:[]},
	  		 			tbodyTr:{num:'',area:''}
	  		 	}
    			var chartDom=$('#landInfoStatic .chart')[0];
    			this._createEcharts(chartDom,this.landInfoStatic.legendData,this.landInfoStatic.seriesData.num,"landInfo");
    			$('#landInfoStatic .detailInfo table:first>tbody').empty();
    			var params = this._constructLandInfoParam();
    			$.post("../client/service/RegionStaticController/landInfoStatics",{"params":JSON.stringify(params)},function(resp){
    				//debugger
    				var resp= $.parseJSON(resp);
    				if(resp.success){
    					for(var key in resp.result){
    						//debugger
    						switch(key){
    							case "totalNum"://总数
    								this.landInfoStatic.totalNum=resp.result[key];
    								break;
    							case "totalArea"://总面积
    								this.landInfoStatic.totalArea=resp.result[key];
    								break;
    							case "landInfoStatics"://土地信息统计
    								debugger
    								$.each(resp.result[key], function(i, item){
    									var color=this.alreadyMasteredLand[item["landTypeName"]]["renderColor"];
    									color=color.substring(1,color.length-1);
    									color='rgba('+color+')';
    									this.landInfoStatic.legendData.push(item["landTypeName"]);
    									this.landInfoStatic.pieColor.push(color);
    		    						this.landInfoStatic.seriesData.num.push({"value":item["NUM"],"name":item["landTypeName"]});
    		    						this.landInfoStatic.seriesData.area.push({"value":item["AREA"].toFixed(2),"name":item["landTypeName"]});
    		    						//tabel数据构建
    		    						var tbodyTr='';
    		    						tbodyTr+='<tr>';
    		    						tbodyTr+='<td style="text-align: center;">'+item["landTypeName"]+'</td>';
    		    						tbodyTr+='<td style="text-align: center;">'+item["NUM"]+'</td>';
    		    						tbodyTr+='<td style="text-align: center;">'+item["AREA"].toFixed(2)+'</td>';
    		    						var numPercent=0;
    		    						if(this.landInfoStatic.totalNum != 0){
    		    							numPercent=((item["NUM"]/this.landInfoStatic.totalNum)*100).toFixed(1);
    		    						}
    		    						var areaPercent=0;
    		    						if(this.landInfoStatic.totalArea != 0){
    		    							areaPercent=((item["AREA"]/this.landInfoStatic.totalArea)*100).toFixed(1);
    		    						}
    		    						this.landInfoStatic.tbodyTr.num += tbodyTr+'<td style="text-align: center;">'+numPercent+'</td>';
    		    						this.landInfoStatic.tbodyTr.num += '</tr>';
    		    						
    		    						this.landInfoStatic.tbodyTr.area += tbodyTr+'<td style="text-align: center;">'+areaPercent+'</td>';
    		    						this.landInfoStatic.tbodyTr.area += '</tr>';
    								}.bind(this));
    								break;
    						}
    					}
    					//设置总数和面积值
    					$('#landInfoStatic >.staticInfo .totalNum').text(this.landInfoStatic.totalNum);
    					$('#landInfoStatic >.staticInfo .totalArea').text(this.landInfoStatic.totalArea+'m²');
    					debugger
    					//生成图表
    					this.landInfoChart.setOption({legend:{data:this.landInfoStatic.legendData},color:this.landInfoStatic.pieColor,
    						series:[{data:this.landInfoStatic.seriesData.num}]});
    					this.landInfoChart.on('click', function (params) {
    						debugger
    						if(params.value!=0){
        						var landTypeName=params.name;
        						//this._queryLandInfoFeature(landTypeName);
        						this.currentLandType=landTypeName;
        						this._tableTrClickFun(landTypeName);
    						}
    		            }.bind(this));
    					//table数据赋值
    	    			$('#landInfoStatic .detailInfo table:first>tbody').append(this.landInfoStatic.tbodyTr.num);
    	    			this._tableTrClickEvtBind();
    				}
    			}.bind(this));
    		},
    		_tableTrClickEvtBind:function(){
    			$('#landInfoStatic .detailInfo table:first>tbody tr',this.domNode).unbind('click').click(function(evt){
    				debugger
    				var landTypeName="";
    				if(evt.target.nodeName.toLowerCase() == "td"){
    					landTypeName = evt.target.parentNode.children[0].innerText;
    					this.landTypeName=landTypeName;
    					this._tableTrClickFun(landTypeName);
    				}
    				debugger;
    			}.bind(this));
    		},
    		_tableTrClickFun:function(landTypeName){
    			$('#landInfoStatic .detailInfo',this.domNode).showLoading();
    			Global.currentUseFun ="govRegionStatic_landInfo";
    			this._setLandGraphicsLayer(landTypeName);
    			var condition=this.condition+" AND "+this.alreadyMasteredLand[landTypeName]["queryFild"]+"<>0";
				var queryTask=new QueryTask(this.alreadyMasteredLand[landTypeName].url);
				var query=new ArcQuery();
				query.returnGeometry=true;
				query.outFields=["*"];
				query.where=condition;
				queryTask.execute(query,lang.hitch(this,function(feaset){
					debugger
					for(var i=0;i<feaset.features.length;i++){
						feaset.features[i].fields=feaset.fields;
						this.singleLandInfoGraphicLayer.add(feaset.features[i]);
					}
					this._LandTypeColumnData(landTypeName);
					this._LandTypeData(feaset.features,landTypeName);
					this._createLandInfoTableList(landTypeName);
					$('#landInfoStatic .detailInfo',this.domNode).hideLoading();
				}.bind(this)),function(error){
					$('#landInfoStatic .detailInfo',this.domNode).hideLoading();
				});
    		},
    		_setLandGraphicsLayer:function(landTypeName){
    			this.singleLandInfoGraphicLayer.clear();
//    			on(this.singleLandInfoGraphicLayer ,"click", lang.hitch(this,function(evt) {
//					Topic.publish("MapLandClickHandler",evt);
//				}));
//    			this.singleLandInfoGraphicLayer.setInfoTemplate(new InfoTemplate(this.alreadyMasteredLand[landTypeName].templateInfo));
    			this.singleLandInfoGraphicLayer.setRenderer(new LandTypeRenderer({config:{color:this.alreadyMasteredLand[landTypeName].renderColor}}));
    			if(!Global.widgets.mapWidget.map.getLayer("landInfoGraphicLayer")){
    				Global.widgets.mapWidget.map.addLayer(this.singleLandInfoGraphicLayer);
    				on(this.singleLandInfoGraphicLayer,"click",lang.hitch(this,function(e){
    					Topic.publish("graphicClickEvent",e);
    				}));
    			}
    		},
    		//在点击行的时候在当前图层上查询出该graphic
    		_singleGovRegionBlockById:function(paramObj){
    			debugger
    			if(paramObj.blockInfoById != undefined){
    				debugger
    				var garphics =this.singleLandInfoGraphicLayer.graphics,
    				color=this.alreadyMasteredLand[this.currentLandType]["renderColor"],
    				line,symbol;
    				for(var i in garphics){
    					if(garphics[i].attributes["OBJECTID"]==paramObj["blockInfoById"]){
    						if(this.singleBlockInfoClickedGraphic!=null){
    							//还原该graphic的渲染
	    						color = color.substring(color.indexOf("[")+1, color.indexOf("]"));
	    						var colorArr=color.split(",");
	    						line=new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,255,255,0.3]), 1);
	   							symbol=new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,line,new dojo.Color([parseInt(colorArr[0]),parseInt(colorArr[1]),parseInt(colorArr[2]),parseFloat(colorArr[3])]));
	   							this.singleBlockInfoClickedGraphic.setSymbol(symbol);
    						}
    						//对该graphic进行渲染
    						line=new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,255,255,1]), 3);
    						symbol=new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,line,this.singleLandInfoGraphicLayer.renderer.getSymbol().color);
    						garphics[i].setSymbol(symbol);
    						Global.widgets.mapWidget.map.centerAndZoom(garphics[i].geometry.getCentroid(), 11);
    						this.singleBlockInfoClickedGraphic=garphics[i];
    						break;
    					}
    				}
    			}
    		},
    		_LandTypeColumnData:function(landTypeName){
    				var arr=[
    				           {field:'OBJECTID',title:'编号',width:30,visible:false},
    		  				   {field:'CODE',title:'要素代码',width:30,align:'center',sortable:true},
    		                   {field:'CSMC',title:'市',width:45,align:'center',visible:true},
    		                   {field:'FQMC',title:'区/县', width:30,align:'center',visible:true}];
    				switch(landTypeName){
    					case "纳入三旧的旧厂":
    					case "纳入三旧的旧城":
    					case "纳入三旧的旧村":
    					case "纳入三旧的旧村":
    					case "纳入三旧的集体旧厂":
    						var SJArr=[
    						    {field:'QSDWMC',title:'权属单位',width:30,align:'center'},
    						    {field:'YDMJ',title:'用地面积',width:30,align:'center'},
    						    {field:'ZJMC',title:'镇街名称',width:30,align:'center',visible:false},
    						    {field:'XMDKBH',title:'图斑编号',width:30,align:'center',visible:false}, 
    						    {field:'GZLX',title:'改造类型',width:30,align:'center',visible:false},       
    						    {field:'ZLDWMC',title:'座楼单位名称',width:30,align:'center',visible:false}, 
    						    {field:'SYQSX',title:'所有权属性',width:30,align:'center',visible:false},
    						    {field:'TDYT',title:'现土地用途',width:30,align:'center',visible:false},
    						    {field:'GHYT',title:'规划用途',width:30,align:'center',visible:false},
    						    {field:'NGZYT',title:'拟改造用途',width:30,align:'center',visible:false},
    						    {field:'SFBZGH',title:'是否规划',width:30,align:'center',visible:false},
    						    {field:'GYMJ',title:'其中国有面积',width:30,align:'center',visible:false},
    						    {field:'JTMJ',title:'其中集体面积',width:30,align:'center',visible:false},
    						    {field:'NYDMJ',title:'其中农用地面积',width:30,align:'center',visible:false},
    						    {field:'HFYDMJ',title:'其中合法用地面积',width:30,align:'center',visible:false},
    						    {field:'JHGZNF',title:'计划改造年份',width:30,align:'center',visible:false},
    						    {field:'BZ',title:'备注',width:30,align:'center',visible:false},
    						    {field:'BZ2',title:'标注',width:30,align:'center',visible:false},
    						    {field:'JCFNF',title:'旧村庄年份',width:30,align:'center',visible:false}
    						];
    						arr	= arr.concat(SJArr);
    						break;
    					case "村自留地":
    						var lydArr=[//留用地
    						    {field:'QSDW',title:'权属单位',width:30,align:'center'},
    						    {field:'MJ',title:'面积',width:30,align:'center',visible:false},
    						    {field:'ZJMC',title:'镇街名称',width:30,align:'center',visible:false},
    						    {field:'CMC',title:'村（社区）名称',width:30,align:'center',visible:false},
    						    {field:'SYQXZ',title:'所有权性质',width:30,align:'center',visible:false},
    						    {field:'XZYT',title:'现状用途',width:30,align:'center',visible:false},
    						    {field:'DZ',title:'地址',width:30,align:'center',visible:false},
    						    {field:'WH',title:'选址文号',width:30,align:'center',visible:false},
    						    {field:'PWH',title:'土地发证文号',width:30,align:'center',visible:false},
    						    {field:'BZ',title:'备注',width:30,align:'center',visible:false},
    						    {field:'BZ2',title:'标注',width:30,align:'center',visible:false}
    						];
    						arr	= arr.concat(lydArr);
    						break;
    					case "国有储备用地":
    						var jhgdArr=[//国有储备用地
    						             {field:'SJMC',title:'市界名称',width:30,align:'center',visible:false},
    						             {field:'QJMC',title:'区界名称',width:30,align:'center',visible:false},
    						             {field:'ZJMC',title:'镇街名称',width:30,align:'center'},
    						             {field:'YDMJ',title:'用地面积',width:30,align:'center'},
    						             {field:'BZ',title:'备注',width:30,align:'center',visible:false},
    						             {field:'BZ2',title:'标注',width:30,align:'center',visible:false}
    						];
    						arr	= arr.concat(jhgdArr);
    						break;
    				}
    				this.alreadyMasteredLand[landTypeName]["table"]["columnsData"]=arr;
    		},
    		_LandTypeData:function(objArr,landTypeName){
    			var arr=[];
    			for(var i=0;i<objArr.length;i++){
    				var obj={};
    				obj["OBJECTID"] = objArr[i].attributes.OBJECTID;
    				obj["CODE"] = objArr[i].attributes.CODE;
    				obj["CSMC"] = objArr[i].attributes.CSMC;
    				obj["FQMC"] = objArr[i].attributes.FQMC;
    				switch(landTypeName){
    					case "纳入三旧的旧厂":
    					case "纳入三旧的旧城":
    					case "纳入三旧的旧村":
    					case "纳入三旧的旧村":
    					case "纳入三旧的集体旧厂":
    						obj["QSDWMC"] = objArr[i].attributes.QSDWMC;
    						obj["YDMJ"] = (objArr[i].attributes.YDMJ != null) ? objArr[i].attributes.YDMJ.toFixed(2):0;
    						obj["ZJMC"] = objArr[i].attributes.ZJMC;
    						obj["XMDKBH"] = objArr[i].attributes.XMDKBH;
    						obj["GZLX"] = objArr[i].attributes.GZLX;
    						obj["ZLDWMC"] = objArr[i].attributes.ZLDWMC;
    						obj["SYQSX"] = objArr[i].attributes.SYQSX;
    						obj["TDYT"] = objArr[i].attributes.TDYT;
    						obj["GHYT"] = objArr[i].attributes.GHYT;
    						obj["NGZYT"] = objArr[i].attributes.NGZYT;
    						obj["SFBZGH"] = objArr[i].attributes.SFBZGH;
    						obj["GYMJ"] = (objArr[i].attributes.GYMJ != null) ? objArr[i].attributes.GYMJ.toFixed(2):0;
    						obj["JTMJ"] = (objArr[i].attributes.JTMJ != null) ? objArr[i].attributes.JTMJ.toFixed(2):0;
    						obj["NYDMJ"] = (objArr[i].attributes.NYDMJ != null) ? objArr[i].attributes.NYDMJ.toFixed(2):0;
    						obj["HFYDMJ"] = (objArr[i].attributes.HFYDMJ != null) ? objArr[i].attributes.HFYDMJ.toFixed(2):0;
    						obj["JHGZNF"] = objArr[i].attributes.JHGZNF;
    						obj["BZ"] = objArr[i].attributes.BZ;
    						obj["BZ2"] = objArr[i].attributes.BZ2;
    						obj["JCFNF"] = objArr[i].attributes.JCFNF;
    						break;
    					case "村自留地":
    						obj["QSDW"] = objArr[i].attributes.QSDW;
    					    obj["MJ"] =(objArr[i].attributes.MJ != null) ? objArr[i].attributes.MJ.toFixed(2):0;
    						obj["ZJMC"] = objArr[i].attributes.ZJMC;
    						obj["CMC"] = objArr[i].attributes.CMC;
    						obj["SYQXZ"] = objArr[i].attributes.SYQXZ;
    						obj["XZYT"] = objArr[i].attributes.XZYT;
    						obj["DZ"] = objArr[i].attributes.DZ;
    						obj["ZJMC"] = objArr[i].attributes.ZJMC;
    						obj["WH"] = objArr[i].attributes.WH;
    						obj["PWH"] = objArr[i].attributes.PWH;
    						obj["BZ"] = objArr[i].attributes.BZ;
    						obj["BZ2"] = objArr[i].attributes.BZ2;
    						break;
    					case "国有储备用地":
    						obj["SJMC"] = objArr[i].attributes.SJMC;
    						obj["QJMC"] = objArr[i].attributes.QJMC;
    						obj["ZJMC"] = objArr[i].attributes.ZJMC;
    						obj["YDMJ"] = (objArr[i].attributes.YDMJ != null) ? objArr[i].attributes.YDMJ.toFixed(2):0;
    						obj["BZ"] = objArr[i].attributes.BZ;
    						obj["BZ2"] = objArr[i].attributes.BZ2;
    						break;
    				}
    				arr.push(obj);
    			}
    			this.alreadyMasteredLand[landTypeName]["table"]["tabelData"]=arr;
    		},
    		//创建高级查询Table列表
    		_createLandInfoTableList:function(landTypeName){
    			debugger
    			require(["gistech/widgets/QueryTableList/QueryTableList"],lang.hitch(this,function(QueryTableList){
    				var queryTableList = new QueryTableList({
    					"tableData":this.alreadyMasteredLand[landTypeName]["table"]["tabelData"],
    					"columnsData":this.alreadyMasteredLand[landTypeName]["table"]["columnsData"],
    					"sortName":this.alreadyMasteredLand[landTypeName]["table"]["sortName"],
    					"sortOrder":this.alreadyMasteredLand[landTypeName]["table"]["sortOrder"],
    					"exportTableName":this.alreadyMasteredLand[landTypeName]["table"]["exportTableName"]
    				});
    				queryTableList.startup();
    				var backListView='<button class="btn btn-default" type="button" id="backListView" title="返回列表视图" style="height:32px;"><i class="glyphicon glyphicon-arrow-left"></i></button>';
    				$(".fixed-table-toolbar .columns",queryTableList.domNode).append(backListView);
    				
    				$("#landInfoStatic .detailInfo table:first",this.domNode).next().remove();
    				$("#landInfoStatic .detailInfo table:first",this.domNode).after(queryTableList.domNode);
    				$("#landInfoStatic .detailInfo table:first",this.domNode).hide();
    				if(!ioc.map.userInfoData.isManager){
    					$('.fixed-table-toolbar .columns .export',queryTableList.domNode).css("display","none");
    				}
    				$('#backListView',queryTableList.domNode).click(function(){
    					$(queryTableList.domNode).hide();
    					$("#landInfoStatic .detailInfo table:first",this.domNode).show();
    				}.bind(this));
    				debugger
    			}));
    		},
    		_numPercent:function(){
    			debugger
    			$('#landInfoStatic .numPercent',this.domNode).css({zIndex:"2",color:"#1A76BF",background:"#FFFFFF"});
    			$('#landInfoStatic .areaPercent',this.domNode).css({zIndex:"1",color:"#fff",background:"#1A76BF"});
    			this.landInfoChart.setOption({series:[{data:this.landInfoStatic.seriesData.num}]});
    			$('#landInfoStatic .detailInfo table:first>tbody').empty();
    			$('#landInfoStatic .detailInfo table:first>tbody').append(this.landInfoStatic.tbodyTr.num);
    			this._tableTrClickEvtBind();
    		},
    		_areaPercent:function(){
    			debugger
    			$('#landInfoStatic .areaPercent',this.domNode).css({zIndex:"2",color:"#1A76BF",background:"#FFFFFF"});
    			$('#landInfoStatic .numPercent',this.domNode).css({zIndex:"1",color:"#fff",background:"#1A76BF"});
    			//debugger
    			this.landInfoChart.setOption({series:[{data:this.landInfoStatic.seriesData.area}]});
    			$('#landInfoStatic .detailInfo table:first>tbody').empty();
    			$('#landInfoStatic .detailInfo table:first>tbody').append(this.landInfoStatic.tbodyTr.area);
    			this._tableTrClickEvtBind();
    		},
    		_constructLandInfoParam:function(){
    			var param={table:[]};//{tableName:"";queryFild:""}
    			for(var key in this.alreadyMasteredLand){
    				var obj={};
    				obj["tableName"]=this.alreadyMasteredLand[key]["tableName"];
    				obj["queryFild"]=this.alreadyMasteredLand[key]["queryFild"];
    				obj["csmc"]=this.city;
    				obj["fqmc"]=this.county;
    				obj["zjmc"]=this.town;
    				obj["landTypeName"]=key;
    				param["table"].push(obj);
    			}
    			return param;
    		},
    		_landInfoNavShown:function(){
    			debugger
    			$("#regionStaticResult #myTab a[href='#landInfoStatic']",this.domNode).on('shown.bs.tab', function (e){
    				debugger
    				this.singleWYTZGraphicLayer.clear();
    				this.singleLandInfoGraphicLayer.clear();
    				$("#landInfoStatic .detailInfo .queryList",this.domNode).hide();
					$("#landInfoStatic .detailInfo table:first",this.domNode).show();
    			}.bind(this));
    		},
    		/******跟进项目************************************************************************/
    		_followUpProjectStatic:function(){
    			//debugger
    			this.followUpProjectStatic={
	  		 			totalNum:0,totalArea:0,legendData:[],
	  		 			seriesData:{num:[],area:[]},
	  		 			tbodyTr:{num:'',area:''}
	  		 	}
    			var chartDom=$('#followUpProjectStatic .chart')[0];
    			this._createEcharts(chartDom,this.followUpProjectStatic.legendData,this.followUpProjectStatic.seriesData.num,"followUpProject");
    			$('#followUpProjectStatic .detailInfo table:first>tbody').empty();
    			var params = this._constructParamsForFollowUpProj();
    			$.post("../client/service/RegionStaticController/followUpProjectStatic",{"params":JSON.stringify(params)},function(resp){
    				//debugger
    				var resp= $.parseJSON(resp);
    				if(resp.success){
    					for(var key in resp.result){
    						//debugger
    						switch(key){
    							case "totalNum"://总数
    								this.followUpProjectStatic.totalNum=resp.result[key];
    								break;
    							case "totalArea"://总面积
    								this.followUpProjectStatic.totalArea=resp.result[key];
    								break;
    							case "ExtendStylesStatics"://土地信息统计
    								$.each(resp.result[key], function(i, item){
    									this.followUpProjectStatic.legendData.push(item["extendStyleName"]);
    		    						this.followUpProjectStatic.seriesData.num.push({"value":item["NUM"],"name":item["extendStyleName"]});
    		    						this.followUpProjectStatic.seriesData.area.push({"value":item["AREA"],"name":item["extendStyleName"]});
    		    						//tabel数据构建
    		    						var tbodyTr='';
    		    						tbodyTr+='<tr>';
    		    						tbodyTr+='<td style="text-align: center;">'+item["extendStyleName"]+'</td>';
    		    						tbodyTr+='<td style="text-align: center;">'+item["NUM"]+'</td>';
    		    						tbodyTr+='<td style="text-align: center;">'+item["AREA"].toFixed(2)+'</td>';
    		    						
    		    						var numPercent=0;
    		    						if(this.followUpProjectStatic.totalNum != 0){
    		    							numPercent=((item["NUM"]/this.followUpProjectStatic.totalNum)*100).toFixed(1);
    		    						}
    		    						var areaPercent=0;
    		    						if(this.followUpProjectStatic.totalArea != 0){
    		    							areaPercent=((item["AREA"]/this.followUpProjectStatic.totalArea)*100).toFixed(1);
    		    						}
    		    						
    		    						this.followUpProjectStatic.tbodyTr.num += tbodyTr+'<td style="text-align: center;">'+numPercent+'</td>';
    		    						this.followUpProjectStatic.tbodyTr.num += '</tr>';
    		    						
    		    						this.followUpProjectStatic.tbodyTr.area += tbodyTr+'<td style="text-align: center;">'+areaPercent+'</td>';
    		    						this.followUpProjectStatic.tbodyTr.area += '</tr>';
    								}.bind(this));
    								break;
    						}
    					}
    					//设置总数和面积值
    					$('#followUpProjectStatic >.staticInfo .totalNum').text(this.followUpProjectStatic.totalNum);
    					$('#followUpProjectStatic >.staticInfo .totalArea').text(this.followUpProjectStatic.totalArea+'m²');
    					
    					//生成图表
    					this.followUpProjectChart.setOption({legend:{data:this.followUpProjectStatic.legendData,top:'10',itemGap:8},color:this.extendManagerAndControl.colors,
    						series:[{data:this.followUpProjectStatic.seriesData.num}]});
    					this.followUpProjectChart.on('click', function (params) {
    						//debugger
    						if(params.value!=0){
    							var extendStyleName=params.name;
        						this._followUpProjectTableTrClickFun(extendStyleName);
    						}
    		            }.bind(this));
    					//table数据赋值
    	    			$('#followUpProjectStatic .detailInfo table:first>tbody').append(this.followUpProjectStatic.tbodyTr.num);
    	    			this._followUpProjectTableTrClickEvtBind();
    				}
    			}.bind(this));
    		},
    		_followUpProjectTableTrClickEvtBind:function(){
    			$('#followUpProjectStatic .detailInfo table:first>tbody tr',this.domNode).unbind('click').click(function(evt){
    				debugger
    				var extendStyleName="";
    				if(evt.target.nodeName.toLowerCase() == "td"){
    					extendStyleName = evt.target.parentNode.children[0].innerText;
    					this._followUpProjectTableTrClickFun(extendStyleName);
    				}
    				debugger;
    			}.bind(this));
    		},
    		_followUpProjectTableTrClickFun:function(extendStyleName){
    			$('#followUpProjectStatic .detailInfo',this.domNode).showLoading();
    			Global.currentUseFun ="govRegionStatic_followUpProject";
    			this._setWYTZGraphicLayer();
    			var queryTask=new QueryTask(this.extendManagerAndControl.url);
    			var query=new ArcQuery();
				query.returnGeometry=true;
				query.outFields=["*"];
				query.where=this._getWYTZCondition(extendStyleName);
				queryTask.execute(query,lang.hitch(this,function(feaset){
					debugger
					var index=$.inArray(extendStyleName,this.extendManagerAndControl.extendStyle);
					var extendStyleEn="";
					if(index > -1){
						extendStyleEn=this.extendManagerAndControl.extendStyleEn[index];
					}
					for(var i=0;i<feaset.features.length;i++){
						feaset.features[i].fields=feaset.fields;
						var pictureMarkerSymbol = new PictureMarkerSymbol("gistech/widgets/GovRegionStatic/images/"+extendStyleEn+".png", 30, 40);
						var graphic = new Graphic(feaset.features[i].geometry,pictureMarkerSymbol,feaset.features[i].attributes);
						this.singleWYTZGraphicLayer.add(graphic);
					}
					this._wytzColumnData();
					this._wytzData(feaset.features);
					this._createWYTZInfoTableList(extendStyleName);
					$('#followUpProjectStatic .detailInfo',this.domNode).hideLoading();
				}),function(error){
					$('#followUpProjectStatic .detailInfo',this.domNode).hideLoading();
				});
    		},
    		_setWYTZGraphicLayer:function(){
    			debugger
    			this.singleWYTZGraphicLayer.clear();
//    			on(this.singleWYTZGraphicLayer ,"click", lang.hitch(this,function(evt) {
//    				debugger
//					Topic.publish("MapLandClickHandler",evt);
//				}));
//    			this.singleWYTZGraphicLayer.setInfoTemplate(new InfoTemplate(this.extendManagerAndControl.templateInfo));
    			if(!Global.widgets.mapWidget.map.getLayer("wYTZGraphicLayer")){
    				Global.widgets.mapWidget.map.addLayer(this.singleWYTZGraphicLayer);
    				on(this.singleWYTZGraphicLayer,"click",lang.hitch(this,function(e){
    					Topic.publish("graphicClickEvent",e);
    				}));
    			}
    		},
    		_getWYTZCondition:function(extendStyleName){
    			var condition="";
    			if(this.county != ""){
    				condition+="CS ='"+this.city+"' AND QJ='"+this.county+"'";
    			}else{
    				condition+="CS ='"+this.city+"'";
    			}
    			condition += " AND TZFS='"+extendStyleName+"'";
    			debugger
    			if(!ioc.map.userInfoData.isManager==true){
    				var  userName=" AND USERNAME IN (";
    				var managerUserArray=skipEmptyElementForArray(ioc.map.menagerUsers.split(","));
    				$.each(managerUserArray,function(i,item){
    					if(i == (managerUserArray.length-1)){
    						userName+="'"+item+"')";
    					}else{
    						userName+="'"+item+"',";
    					}
    				});
    				condition += userName;
				}
    			return condition;
    		},
    		_wytzColumnData:function(){
    			var arr=[
		           {field:'OBJECTID',title:'编号',width:30,visible:false},
                   {field:'CS',title:'市',width:45,align:'center',visible:false},
                   {field:'QJ',title:'区/县', width:30,align:'center',visible:false},
                   {field:'ZJ',title:'镇街', width:30,align:'center',visible:true},
                   {field:'DZ',title:'地址', width:30,align:'center',visible:false},
                   {field:'TZFS',title:'拓展方式', width:30,align:'center',visible:true},
                   {field:'XMSX',title:'项目属性', width:30,align:'center',visible:false},
                   {field:'TGXX',title:'土规信息', width:30,align:'center',visible:false},
                   {field:'KGXX',title:'控规信息', width:30,align:'center',visible:false},
                   {field:'ZYDMJ',title:'总用地面积', width:30,align:'center',visible:true},
                   {field:'JYDMJ',title:'净用地面积', width:30,align:'center',visible:false},
                   {field:'DKRJL',title:'地块容积率', width:30,align:'center',visible:false},
                   {field:'SYQXX',title:'所有权信息', width:30,align:'center',visible:false},
                   {field:'QSDW',title:'权属单位', width:30,align:'center',visible:true},
                   {field:'GHZH',title:'规划证号', width:30,align:'center',visible:false},
                   {field:'GTZH',title:'国土证号', width:30,align:'center',visible:false},
                   {field:'LXRSX',title:'联系人属性', width:30,align:'center',visible:false},
                   {field:'LXRXM',title:'联系人姓名', width:30,align:'center',visible:true},
                   {field:'LXFS',title:'联系方式', width:30,align:'center',visible:false},
                   {field:'BZJ',title:'保证金', width:30,align:'center',visible:false},
                   {field:'ZDJ',title:'总地价', width:30,align:'center',visible:false},
                   {field:'DJRQ',title:'登记日期', width:30,align:'center',visible:false},
                   {field:'DQGS',title:'地区公司', width:30,align:'center',visible:false},
                   {field:'TZSYB',title:'拓展事业部', width:30,align:'center',visible:false},
                   {field:'TZZ',title:'拓展组', width:30,align:'center',visible:false},
                   {field:'YJQYSJ',title:'预计签约时间', width:30,align:'center',visible:false},
                   {field:'YJHQSJ',title:'预计获取时间', width:30,align:'center',visible:false},
                   {field:'SJQYSJ',title:'实际签约时间', width:30,align:'center',visible:false},
                   {field:'SJHQSJ',title:'实际获取时间', width:30,align:'center',visible:false},
                   {field:'BZ',title:'备注', width:30,align:'center',visible:false},
                   {field:'USERNAME',title:'用户名称', width:30,align:'center',visible:false}
		       ];
    			this.extendManagerAndControl.table.columnsData=arr;
    			
    		},
    		_wytzData:function(objArr){
    			var arr=[];
    			for(var i=0;i<objArr.length;i++){
    				var obj={};
    				obj["OBJECTID"] = objArr[i].attributes.OBJECTID;
    				obj["CS"] = objArr[i].attributes.CS;
    				obj["QJ"] = objArr[i].attributes.QJ;
    				obj["ZJ"] = objArr[i].attributes.ZJ;
    				obj["DZ"] = objArr[i].attributes.DZ;
    				obj["TZFS"] = objArr[i].attributes.TZFS;
    				obj["XMSX"] = objArr[i].attributes.XMSX;
    				obj["TGXX"] = objArr[i].attributes.TGXX;
    				obj["KGXX"] = objArr[i].attributes.KGXX;
    				obj["ZYDMJ"] = (objArr[i].attributes.ZYDMJ != null) ? objArr[i].attributes.ZYDMJ.toFixed(2):0;
    				obj["JYDMJ"] = (objArr[i].attributes.JYDMJ != null) ? objArr[i].attributes.JYDMJ.toFixed(2):0;
    				obj["DKRJL"] = objArr[i].attributes.DKRJL;
    				obj["SYQXX"] = objArr[i].attributes.SYQXX;
    				obj["QSDW"] = objArr[i].attributes.QSDW;
    				obj["GHZH"] = objArr[i].attributes.GHZH;
    				obj["GTZH"] = objArr[i].attributes.GTZH;
    				obj["LXRSX"] = objArr[i].attributes.LXRSX;
    				obj["LXRXM"] = objArr[i].attributes.LXRXM;
    				obj["LXFS"] = objArr[i].attributes.LXFS;
    				obj["BZJ"] = objArr[i].attributes.BZJ;
    				obj["ZDJ"] = objArr[i].attributes.ZDJ;
    				obj["DJRQ"] = objArr[i].attributes.DJRQ;
    				obj["DQGS"] = objArr[i].attributes.DQGS;
    				obj["TZSYB"] = objArr[i].attributes.TZSYB;
    				obj["TZZ"] = objArr[i].attributes.TZZ;
    				obj["YJQYSJ"] = objArr[i].attributes.YJQYSJ;
    				obj["YJHQSJ"] = objArr[i].attributes.YJHQSJ;
    				obj["SJQYSJ"] = objArr[i].attributes.SJQYSJ;
    				obj["SJHQSJ"] = objArr[i].attributes.SJHQSJ;
    				obj["BZ"] = objArr[i].attributes.BZ;
    				obj["USERNAME"] = objArr[i].attributes.USERNAME;
    				arr.push(obj);
    			}
    			this.extendManagerAndControl.table.tabelData=arr;
    		},
    		_createWYTZInfoTableList:function(extendStyleName){
    			require(["gistech/widgets/QueryTableList/QueryTableList"],lang.hitch(this,function(QueryTableList){
    				var queryTableList = new QueryTableList({
    					"tableData":this.extendManagerAndControl.table.tabelData,
    					"columnsData":this.extendManagerAndControl.table.columnsData,
    					"sortName":"",
    					"sortOrder":"",
    					"exportTableName":extendStyleName
    				});
    				queryTableList.startup();
    				
    				var backListView='<button class="btn btn-default" type="button" id="backListView" title="返回列表视图" style="height:32px;"><i class="glyphicon glyphicon-arrow-left"></i></button>';
    				$(".fixed-table-toolbar .columns",queryTableList.domNode).append(backListView);
    				
    				$("#followUpProjectStatic .detailInfo table:first",this.domNode).next().remove();
    				$("#followUpProjectStatic .detailInfo table:first",this.domNode).after(queryTableList.domNode);
    				$("#followUpProjectStatic .detailInfo table:first",this.domNode).hide();
    				if(!ioc.map.userInfoData.isManager){
    					$('.fixed-table-toolbar .columns .export',queryTableList.domNode).css("display","none");
    				}
    				$('#backListView',queryTableList.domNode).click(function(){
    					$(queryTableList.domNode).hide();
    					$("#followUpProjectStatic .detailInfo table:first",this.domNode).show();
    				}.bind(this));
    				debugger
    			}));
    		},
    		_numPercentForFollowUpProj:function(){
    			$('#followUpProjectStatic .numPercent',this.domNode).css({zIndex:"2",color:"#1A76BF",background:"#FFFFFF"});
    			$('#followUpProjectStatic .areaPercent',this.domNode).css({zIndex:"1",color:"#fff",background:"#1A76BF"});
    			this.followUpProjectChart.setOption({series:[{data:this.followUpProjectStatic.seriesData.num}]});
    			$('#followUpProjectStatic .detailInfo table:first>tbody').empty();
    			$('#followUpProjectStatic .detailInfo table:first>tbody').append(this.followUpProjectStatic.tbodyTr.num);
    			this._followUpProjectTableTrClickEvtBind();
    		},
    		_areaPercentForFollowUpProj:function(){
    			$('#followUpProjectStatic .areaPercent',this.domNode).css({zIndex:"2",color:"#1A76BF",background:"#FFFFFF"});
    			$('#followUpProjectStatic .numPercent',this.domNode).css({zIndex:"1",color:"#fff",background:"#1A76BF"});
    			//debugger
    			this.followUpProjectChart.setOption({series:[{data:this.followUpProjectStatic.seriesData.area}]});
    			$('#followUpProjectStatic .detailInfo table:first>tbody').empty();
    			$('#followUpProjectStatic .detailInfo table:first>tbody').append(this.followUpProjectStatic.tbodyTr.area);
    			this._followUpProjectTableTrClickEvtBind();
    		},
    		_constructParamsForFollowUpProj:function(){
    			var param={};//{tableName:""}
				param["tableName"]=this.extendManagerAndControl["tableName"];
				param["csmc"]=this.city;
				param["fqmc"]=this.county;
				param["zjmc"]=this.town;
				param["extendStyleNames"]=this.extendManagerAndControl["extendStyle"];
				//将蓝达menagerUsers的字符串去“null”和"",得到正确的数组
				if(ioc.map.userInfoData.isManager==true){
					param["isManager"]=true;
					return param;
				}else{
					var managerUserArray=skipEmptyElementForArray(ioc.map.menagerUsers.split(","));
					param["isManager"]=false;
					param["managerUser"]=managerUserArray;
					return param;
				}
    		},
    		_createEcharts:function(chartDom,legendData,seriesData,flag){
    			var option = {
	    			    tooltip: {
	    			        trigger: 'item',
	    			        formatter: "{b}: {c} ({d}%)"
	    			    },
	    			    legend: {
	    			        orient: 'vertical',
	    			        left :'250',
	    			        top:'middle',
	    			        data:legendData
	    			    },
	    			    series:[
	    			        {
	    			            name:'',
	    			            type:'pie',
	    			            radius: ['50%', '90%'],
	    			            center: ['35%', '50%'],
	    			            avoidLabelOverlap: false,
	    			            label: {
	    			                normal: {
	    			                    show: false,
	    			                    position: 'center'
	    			                },
	    			                emphasis: {
	    			                    show: true,
	    			                    textStyle: {
	    			                        fontSize: '14',
	    			                        fontWeight: 'bold'
	    			                    }
	    			                }
	    			            },
	    			            labelLine: {
	    			                normal: {
	    			                    show: false
	    			                }
	    			            },
	    			            data:seriesData
	    			        }
	    			    ]
	    			};
    			switch(flag){
    				case "landInfo":
    					this.landInfoChart= echars2.init(chartDom);
    					this.landInfoChart.setOption(option);
    					break;
    				case "followUpProject":
    					this.followUpProjectChart= echars2.init(chartDom);
    					this.followUpProjectChart.setOption(option);
    					break;
    			}
    		},
    		_singleWYTZById:function(paramObj){
    			debugger
    			if(paramObj.singWYTZInfoById != undefined){
    				debugger
    				var garphics = this.singleWYTZGraphicLayer.graphics,symUrl="",pictureMarkerSymbol=null;
    				for(var i in garphics){
    					if(garphics[i].attributes["OBJECTID"]==paramObj["singWYTZInfoById"]){
    						if(this.singleWYTZClickedGraphic!=null){
    							//还原该graphic的渲染
    							symUrl = this.singleWYTZClickedGraphic.symbol.url.substring(0,this.singleWYTZClickedGraphic.symbol.url.indexOf('_sel.png'))+'.png';
    							pictureMarkerSymbol= new PictureMarkerSymbol(symUrl, 30, 40);
    							this.singleWYTZClickedGraphic.setSymbol(pictureMarkerSymbol);
    						}
    						//对该graphic进行渲染
    						debugger
    						symUrl = garphics[i].symbol.url.substring(0,garphics[i].symbol.url.indexOf('.png'))+'_sel.png'
    						pictureMarkerSymbol= new PictureMarkerSymbol(symUrl, 30, 40);
    						garphics[i].setSymbol(pictureMarkerSymbol);
    						Global.widgets.mapWidget.map.centerAndZoom(garphics[i].geometry, 10);
    						this.singleWYTZClickedGraphic=garphics[i];
    						break;
    					}
    				}
    			}
    		},
    		_followProgramNavShown:function(){
    			debugger
    			$("#regionStaticResult #myTab a[href='#followUpProjectStatic']",this.domNode).on('shown.bs.tab', function (e){
        			this.singleLandInfoGraphicLayer.clear();
        			this.singleWYTZGraphicLayer.clear();
    				$("#followUpProjectStatic .detailInfo .queryList",this.domNode).hide();
					$("#followUpProjectStatic .detailInfo table:first",this.domNode).show();
    			}.bind(this));
    		},
    		/****人员完成度统计*****************************************/
    		//日期组件
    		_initDatePicker:function(){
    			ComponentsPickers.init();
    			var $startDate=$('#memCompletePercentStatic #startDateId',this.domNode);
    			var $endDate=$('#memCompletePercentStatic #endDateId',this.domNode);
    			//debugger
    			//起始时间为当前月的上一个月
    			debugger
    			var date=new Date();
    			var currentYear=(date.getMonth()===0)?(date.getFullYear()-1):date.getFullYear();
    			var prevLastestMonth=(date.getMonth()===0)?12:date.getMonth();
    			prevLastestMonth=prevLastestMonth<10?('0'+prevLastestMonth):prevLastestMonth;
    			var prevLastestDays=new Date(currentYear,prevLastestMonth,0).getDate();
    			prevLastestDays=prevLastestDays<10?('0'+prevLastestDays):prevLastestDays;
    			
    			var startTime=currentYear+'-'+prevLastestMonth+'-'+'01';
    			var endTime=currentYear+'-'+prevLastestMonth+'-'+prevLastestDays;
    			//初始化起始日期控件
    			$startDate.val(startTime);
    			$endDate.val(endTime);
    			
    			//**注意在date-picker控件赋完值一定要进行更新
    			$('#memCompletePercentStatic #dateRangeId.date-picker',this.domNode).datepicker('update');
    		},
    		_selectChange:function(){
    			debugger
    			var $Sel=$('#memCompletePercentStatic select#companySelID',this.domNode);
    			$Sel.change(function(evt){
    				this.memCompletePercentStaticBarData={
        					xAxisData:['核查项目', '洽谈项目', '获取项目'],
        					yAxisData:[],
        					yAxisMaxValue:0,
        					checkParamStandard:0,
        					talkOverParamStandard:0,
          		 			tbodyTr:null}
    				if($Sel.val() == '广州'){
    					this._getChartData('广州');
    				}else{
    					this._getChartData($Sel.val());
    				}
    				this._setChartYAxisMaxValue();
    				this._setChartOption();
					this._createMemCompletePercentTableData();
    			}.bind(this));
    		},
    		_memCompletePercentStaticUpdate:function(){
    			debugger
    			var params= this._constructParamsMemCompletePercentStatic();
    			this.memCompletePercentStaticBarData={
    					xAxisData:['核查项目','洽谈项目', '获取项目'],
    					yAxisData:[],
    					yAxisMaxValue:0,
    					checkParamStandard:0,
    					talkOverParamStandard:0,
      		 			tbodyTr:null
    	  		};
    			this._accessDBGetChartData(params);
    		},
    		//人员完成度的查询
    		_memCompletePercentStatic:function(){
    			this.memCompletePercentStatic={};
    			this.memCompletePercentStaticBarData={
					xAxisData:['核查项目', '洽谈项目', '获取项目'],
					yAxisData:[],
					yAxisMaxValue:0,
					checkParamStandard:0,
					talkOverParamStandard:0,
  		 			tbodyTr:null
	  		 	}
    			var chartDom=$('#memCompletePercentStatic .chart')[0];
    			this._createEchartsBar(chartDom,this.memCompletePercentStaticBarData);
    			var params = this._constructParamsMemCompletePercentStatic();
    			this._accessDBGetChartData(params);
    		},
    		_accessDBGetChartData:function(params){
    			debugger
    			$('#regionStaticResult',this.domNode).showLoading();
    			$.post("../client/service/RegionStaticController/personCompletePercentStatic",{"params":JSON.stringify(params)},function(resp){
    				debugger
    				var resp= $.parseJSON(resp);
    				if(resp.success){
    					debugger
    					this._constructMemCompletePercentStaticData(resp["result"]);
    					if(Object.keys(resp["result"]).length > 1){
    						$('#memCompletePercentStatic select#companySelID',this.domNode).show();
    						var $Sel=$('#memCompletePercentStatic select#companySelID',this.domNode);
    						if($Sel.val() == '广州'){
    	    					this._getChartData('广州');
    	    				}else{
    	    					this._getChartData($Sel.val());
    	    				}
    					}else{
    						$('#memCompletePercentStatic select#companySelID',this.domNode).hide();
    						for(var obj in resp["result"]){
    							this._getChartData(obj);
    						}
    					}
    					//生成图表
    					debugger
    					this._setChartYAxisMaxValue();
    					this._setChartOption();
    					this._createMemCompletePercentTableData();
    					$('#regionStaticResult',this.domNode).hideLoading();
    				}else{
    					layer.msg("土地信息统计失败！", {
    						icon : 2,time:3000
    					});
    					$('#regionStaticResult',this.domNode).hideLoading();
    				}
    			}.bind(this));
    		},
    		_getChartData:function(flag){
    			debugger
    			//var intervalDays = this._getSelDateInteval();
    			
    			var startDate=$('#memCompletePercentStatic #startDateId',this.domNode).val();
				var endDate=$('#memCompletePercentStatic #endDateId',this.domNode).val();
    			var val=Date.parse(startDate.replace(/'-'/g,''));
				var val2=Date.parse(endDate.replace(/'-'/g,''));
				var intervalDays = (new Date(val2)-new Date(val))/1000/3600/24; //开始结束时间差
				  
				var year = endDate.split('-')[0];
				var month = endDate.split('-')[1];
    			var daysOfCurrentMonth=new Date(year,month,0).getDate();
    			
    			var per  =  (intervalDays+1)/daysOfCurrentMonth;
    			
    			switch(flag){
					case '广州':
						for(var key in this.memCompletePercentStatic["广州"]){
							switch(key){
								case "核查项目":
								case "洽谈项目":
								case "获取项目":
									this.memCompletePercentStaticBarData.yAxisData.push(this.memCompletePercentStatic["广州"][key]);
									break;
								case "核查项目指标值":
									//获取当先
									this.memCompletePercentStaticBarData.checkParamStandard=Math.round(((Math.round(per*10)/10)*this.memCompletePercentStatic["广州"][key]));
									break;
								case "洽谈项目指标值":	
									this.memCompletePercentStaticBarData.talkOverParamStandard=Math.round(((Math.round(per*10)/10) * this.memCompletePercentStatic["广州"][key]));
									break;
							}
							this.memCompletePercentStaticChart.setOption({title:{text:'广州市'+'人员完成度统计'}});
						}
						break;
    				case '广州南':
    				case '广州北':
    				case '白云组':
    				case '花都组':
    					for(var key in this.memCompletePercentStatic["广州"]["childrens"][flag]){
    						switch(key){
								case "核查项目":
								case "洽谈项目":
								case "获取项目":
									this.memCompletePercentStaticBarData.yAxisData.push(parseInt(this.memCompletePercentStatic["广州"]["childrens"][flag][key]));
									break;
								case "核查项目指标值":
									this.memCompletePercentStaticBarData.checkParamStandard=Math.round(((Math.round(per*10)/10) * this.memCompletePercentStatic["广州"]["childrens"][flag][key]));
									break;
								case "洽谈项目指标值":	
									this.memCompletePercentStaticBarData.talkOverParamStandard=Math.round(((Math.round(per*10)/10) * this.memCompletePercentStatic["广州"]["childrens"][flag][key]));
									break;
							}
    					}
    					this.memCompletePercentStaticChart.setOption({title:{text:flag +'人员完成度统计'}});
    					break;
    				default:
						for(var key in this.memCompletePercentStatic[flag]){
							switch(key){
								case "核查项目":
								case "洽谈项目":
								case "获取项目":
									this.memCompletePercentStaticBarData.yAxisData.push(parseInt(this.memCompletePercentStatic[flag][key]));
									break;
								case "核查项目指标值":
									this.memCompletePercentStaticBarData.checkParamStandard=Math.round(((Math.round(per*10)/10) * this.memCompletePercentStatic[flag][key]));
									break;
								case "洽谈项目指标值":	
									this.memCompletePercentStaticBarData.talkOverParamStandard=Math.round(((Math.round(per*10)/10) * this.memCompletePercentStatic[flag][key]));
									break;
							}
						}
						this.memCompletePercentStaticChart.setOption({title:{text:flag+'人员完成度统计'}});
    					break;
    			}
    		},
    		_getSelDateInteval:function(){
    			var startDate=$('#memCompletePercentStatic #startDateId',this.domNode).val();
				var endDate=$('#memCompletePercentStatic #endDateId',this.domNode).val();
				return this._DateDiff(startDate,endDate);
    		},
    		_setChartYAxisMaxValue:function(){
    			var array=this.memCompletePercentStaticBarData.yAxisData.concat(new Array(this.memCompletePercentStaticBarData.checkParamStandard,this.memCompletePercentStaticBarData.talkOverParamStandard));
				this.memCompletePercentStaticBarData.yAxisMaxValue=Math.max.apply(Math,array);
    		},
    		_setChartOption:function(){
    			this.memCompletePercentStaticChart.setOption({xAxis:[{data:this.memCompletePercentStaticBarData.xAxisData}],
					yAxis:[{max:this.memCompletePercentStaticBarData.yAxisMaxValue}],
					series:[{data:this.memCompletePercentStaticBarData.yAxisData,
					markLine:{data:[{name:'核查项目标准值',yAxis:this.memCompletePercentStaticBarData.checkParamStandard,lineStyle:{normal:{color:'#C1232B'}}},
					        {name:'洽谈项目标准值',yAxis:this.memCompletePercentStaticBarData.talkOverParamStandard,lineStyle:{normal:{color:'#B5C334'}}}]}}]});
    		},
			//为表格赋值
    		_createMemCompletePercentTableData:function(){
    			$('#memCompletePercentStatic table>tbody').empty();
				this.memCompletePercentStaticBarData.tbodyTr="";
				$.each(this.memCompletePercentStaticBarData.xAxisData, function(i, item){
					var checkParamMemCompletePercent=0,talkOverParamMemCompletePercent=0;
					if(this.memCompletePercentStaticBarData.checkParamStandard !=0){
						checkParamMemCompletePercent=(this.memCompletePercentStaticBarData.yAxisData[i]/this.memCompletePercentStaticBarData.checkParamStandard * 100).toFixed(0);
					}
					if(this.memCompletePercentStaticBarData.talkOverParamStandard !=0){
						talkOverParamMemCompletePercent=(this.memCompletePercentStaticBarData.yAxisData[i]/this.memCompletePercentStaticBarData.talkOverParamStandard * 100).toFixed(0);
					}
					this.memCompletePercentStaticBarData.tbodyTr+='<tr>';
					this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">'+item+'</td>';
					this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">'+this.memCompletePercentStaticBarData.yAxisData[i]+'</td>';
					if(i==0){
						this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">'+this.memCompletePercentStaticBarData.checkParamStandard+'</td>';
						this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">'+checkParamMemCompletePercent+'</td>';
					}else if(i==1){
						this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">'+this.memCompletePercentStaticBarData.talkOverParamStandard+'</td>';
						this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">'+talkOverParamMemCompletePercent+'</td>';
					}else{
						this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">-</td>';
						this.memCompletePercentStaticBarData.tbodyTr+='<td style="text-align: center;">-</td>';
					}
					this.memCompletePercentStaticBarData.tbodyTr+='</tr>';
				}.bind(this));
				$('#memCompletePercentStatic table>tbody').append(this.memCompletePercentStaticBarData.tbodyTr);
    		},
    		_DateDiff:function(sDate1,  sDate2){ //sDate1和sDate2是2006-12-18格式  
    		       var  aDate,  oDate1,  oDate2,  iDays  
    		       aDate  =  sDate1.split("-")  
    		       oDate1  =  new  Date(aDate[1]  +  '-'  +  aDate[2]  +  '-'  +  aDate[0])    //转换为12-18-2006格式  
    		       aDate  =  sDate2.split("-")  
    		       oDate2  =  new  Date(aDate[1]  +  '-'  +  aDate[2]  +  '-'  +  aDate[0])  
    		       iDays  =  parseInt(Math.abs(oDate1  -  oDate2)  /  1000  /  60  /  60  /24)    //把相差的毫秒数转换为天数  
    		       return  iDays  
    		 },   
    		//构造生成柱状图的格式数据
    		_createEchartsBar:function(chartDom,object){
    			this.memCompletePercentStaticChart= echars2.init(chartDom);
    			var option = {
    					title:{
    						left:'center',
    						padding:26,
    						textStyle:{
    							fontSize:14
    						}
    					},
    		            tooltip : {
			                trigger: 'axis',
			                axisPointer : { //坐标轴指示器，坐标轴触发有效
			                    type:'shadow'//默认为直线，可选为：'line' | 'shadow'
			                },
			                formatter:"{b}:{c}"
    		            },
    		            grid: {
    		                left: '5%',
    		                right: '16%',
    		                bottom: '3%',
    		                containLabel: true
    		            },
    		            xAxis : [
    		                {
    		                   type : 'category',
    		                   data : object.xAxisData,
    		                   axisTick: {
    		                      alignWithLabel: true
    		                   }
    		                }
    		            ],
    		            yAxis : [
    		                {
    		                    type : 'value'
    		                }
    		            ],
    		            series : [
    		                {
    		                    name:'',
    		                    type:'bar',
    		                    itemStyle: {
    		                        normal: {
    		                            //好，这里就是重头戏了，定义一个list，然后根据所以取得不同的值，这样就实现了，
    		                            color: function(params) {
    		                                // build a color map as your need.
    		                                var colorList = ['#C1232B','#B5C334','#FCCE10'];
    		                                return colorList[params.dataIndex]
    		                            },
    		                            //以下为是否显示，显示位置和显示格式的设置了
    		                            label: {
    		                                show: true,
    		                                position: 'top',
    		                                formatter:function(obj){
    		                                    switch(obj.name){
    		                                        case "核查项目":
    		                                            var barValue = obj.value;
    		                                            var standardValue=this.memCompletePercentStaticChart.getOption().series[0].markLine.data[0].yAxis;
    		                                            var percent='完成度\n0%';
    		                                            if(standardValue != 0){
    		                                            	percent='完成度\n'+ (barValue/standardValue * 100).toFixed(0)+'%';
    		                                            }
    		                                            break;
    		                                        case "洽谈项目":
    		                                            var barValue = obj.value;
    		                                            var standardValue=this.memCompletePercentStaticChart.getOption().series[0].markLine.data[1].yAxis;;
    		                                            var percent='完成度\n0%';
    		                                            if(standardValue != 0){
    		                                            	percent='完成度\n'+ (barValue/standardValue * 100).toFixed(0)+'%';
    		                                            }
    		                                            break;
    		                                        case "获取项目":
    		                                            var percent='';
    		                                            break;
    		                                    }
    		                                    return percent;
    		                                }.bind(this)
    		                            }
    		                        }
    		                    },
    		                    barWidth: '30%',
    		                    data:object.yAxisData
    		                }
    		            ]
    		        };
    			
				this.memCompletePercentStaticChart.setOption(option);
    		},
    		//构造人员统计数据
    		_constructMemCompletePercentStaticData:function(resultObj){
    			if(Object.keys(resultObj).length>1){//广州
					this.memCompletePercentStatic["广州"]={"核查项目":0,"洽谈项目":0,"获取项目":0,"核查项目指标值":0,"洽谈项目指标值":0,"childrens":{
						"广州北":null,"广州南":null,"白云组":null,"花都组":null}};
					for(var obj in resultObj){
						//this.memCompletePercentStatic["广州"]["人员个数"]+=parseInt(resultObj[obj]["人员个数"]);
						this.memCompletePercentStatic["广州"]["核查项目"]+=parseInt(resultObj[obj]["核查项目"]);
						this.memCompletePercentStatic["广州"]["洽谈项目"]+=parseInt(resultObj[obj]["洽谈项目"]);
						this.memCompletePercentStatic["广州"]["获取项目"]+=parseInt(resultObj[obj]["获取项目"]);
						this.memCompletePercentStatic["广州"]["核查项目指标值"]+=parseInt(resultObj[obj]["核查项目指标值"]);
						this.memCompletePercentStatic["广州"]["洽谈项目指标值"]+=parseInt(resultObj[obj]["洽谈项目指标值"]);
						this.memCompletePercentStatic["广州"]["childrens"][obj]=resultObj[obj];
					}
				}else{//其他
					for(var obj in resultObj){
						this.memCompletePercentStatic[obj]=resultObj[obj];
					}
				}
    		},
    		//构造向后台发送请求的参数
    		_constructParamsMemCompletePercentStatic:function(){
    			debugger
    			var companyNameArr=[];
    			if(this.city == '广州市'){
    				companyNameArr=['广州南','广州北','白云组','花都组'];
    			}else{
    				var city=this.city.substring(0,this.city.indexOf("市"));
    				companyNameArr=[city];
    			}
    			var param={};
				param["companyNameArr"]=companyNameArr;
				param["startDate"]=$('#memCompletePercentStatic #startDateId',this.domNode).val();
				param["endDate"]=$('#memCompletePercentStatic #endDateId',this.domNode).val();
    			return param;
    		}
        });
    });
